﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Web;
using System.Xml;

namespace NCMIS.ObjectModel
{
    public class Folder : ICMISObject
    {
        #region ICMISObject Members

        public virtual string ID
        {
            get;
            set;
        }
        public Dictionary<string, CMISProperties.CMISPropertyBase> Properties { get; set; }
        #endregion

        public List<ICMISObject> Contents { get; set; }

        public Folder()
        {
        }

    }

    public class RestFolder : Folder
    {

        public override string ID
        {
            get
            {
                return base.ID;
            }
            set
            {
                base.ID = value;
            }
        }
    }

    [CollectionDataContract(ItemName = "Folder", Name = "getFoldersResponse", Namespace = "http://mynamespace.com")]
    public class Folders : List<Folder>
    {
        public Folders() { }
        public Folders(List<Folder> folders) : base(folders) { }
    }
}
